﻿using System;

namespace DecorativeMode
{
    class Program
    {
        static void Main(string[] args)
        {
            //装饰模式入口
            ConcerteComponent cc = new ConcerteComponent();
            ConcerteDecoratorA ca = new ConcerteDecoratorA();
            ConcerteDecoratorB cb = new ConcerteDecoratorB();

            ca.SetComponent(cc);
            cb.SetComponent(ca);

            cb.Operation();


            Console.ReadKey();
        }
    }
}
